package com.zl.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zl.dao.SelectorDao;
import com.zl.entity.Area;

@Service
public class AreaService {
	@Autowired
	private SelectorDao selectorDao;
	public Area getArea(String placeType,String place){
		Area area = new Area();
		if("1".equals(placeType)){
			area = selectorDao.getProvinceById(place);
		}else{
			area = selectorDao.getCityById(place);
		}
		return area;
	}
}
